# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgbase=cypari2
pkgname=python-cypari2
pkgver=2.1.3
pkgrel=2
pkgdesc='Cython bindings for PARI'
arch=(loong64 x86_64)
url='https://www.sagemath.org'
license=(LGPL)
depends=(python-cysignals)
makedepends=(cython python-setuptools)
source=(https://pypi.python.org/packages/source/c/$pkgbase/$pkgbase-$pkgver.tar.gz)
sha256sums=('17beb467d3cb39fffec3227c468f0dd8db8a09129faeb95a6bb4c84b2b6c6683')

build() {
  cd $pkgbase-$pkgver
  python setup.py build
}

package_python-cypari2() {
  cd $pkgbase-$pkgver
  python setup.py install --root="$pkgdir"
}
